package com.itchu.system.service;

import com.itchu.common.domain.PageResult;
import com.itchu.system.domain.Category;

import java.util.List;

public interface CategoryService {

    List<Category> showCategoryByPid(Long pid);

    List<Category> findCategoriesBySid(Long id);

    List<Category> findCategoriesByLid(Long id);

    PageResult<Category> findByPage(String key, Integer page, Integer rows, String sortBy, Boolean desc);

    void addCategory(Category category);

    void deletCategory(Long id);

    void updateCategory(Category category);

    Category findById(Long id);
}
